<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>在线留言板 - Java Web 实验</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="container">
        <h1>在线留言板</h1>
        <p>Java Web 信息系统开发课程实验</p>
        
        <div class="form-section">
            <h2>发表留言</h2>
            <form action="message" method="POST">
                <div class="form-group">
                    <label for="name">昵称:</label>
                    <input type="text" id="name" name="name" required 
                           placeholder="请输入您的昵称">
                </div>
                
                <div class="form-group">
                    <label for="message">留言内容:</label>
                    <textarea id="message" name="message" rows="4" 
                              placeholder="请输入留言内容" required></textarea>
                </div>
                
                <button type="submit" class="submit-btn">提交留言</button>
            </form>
        </div>
        
        <div class="link-section">
            <p><a href="message">查看所有留言</a></p>
        </div>
    </div>
</body>
</html>